package com.bean;


/**
 * 实体类包主要存放数据库对应的实体类
 * 类名=表名
 * 列名=属性名
 * 实体类需要包含属性，构造方法，getter，setter方法
 * 属于M(Model)
 */
public class Student {
    private Integer stuid;
    private String stuname;
    private Integer age;
    private Integer sex;

    public Integer getStuid() {
        return stuid;
    }

    public void setStuid(Integer stuid) {
        this.stuid = stuid;
    }

    public String getStuname() {
        return stuname;
    }

    public void setStuname(String stuname) {
        this.stuname = stuname;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Student() {
    }

    public Student(Integer stuid, String stuname, Integer age, Integer sex) {
        this.stuid = stuid;
        this.stuname = stuname;
        this.age = age;
        this.sex = sex;
    }
}
